﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.Department
{
	/// <summary>
	/// 单位实体类
	/// </summary>
	/// <![CDATA[2014-8-11 16:01:10]]>
	public class Entity : EntityBase
	{
		#region 属性
		public string strDepartmentName;		// 单位名称
		public int nParentDepartmentID;		// 上级单位ID
		public int nDepartmentGrade;		// 单位级别
		#endregion 属性

		#region Get、Set属性
		/// <summary>
		/// 单位名称
		/// </summary>
		/// <![CDATA[2014-8-11 16:03:29]]>
		public string DepartmentName
		{
			get { return strDepartmentName; }
			set { strDepartmentName = value.Trim(); }
		}
		/// <summary>
		/// 上级单位ID
		/// </summary>
		/// <![CDATA[2014-8-11 16:04:12]]>
		public int ParentDepartmentID
		{
			get { return nParentDepartmentID; }
			set { nParentDepartmentID = value; }
		}
		/// <summary>
		/// 单位等级
		/// </summary>
		/// <![CDATA[2014-8-11 16:04:43]]>
		public int DepartmentGrade
		{
			get { return nDepartmentGrade; }
			set { nDepartmentGrade = value; }
		}
		#endregion Get、Set属性

		#region 构造函数
		/// <summary>
		/// 实体类构造函数
		/// </summary>
		/// <![CDATA[2014-8-11 16:01:10]]>
		public Entity()
			: base()
		{
		}
		#endregion 构造函数
	}
}
